package tw.com.tuan.ui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;

import tw.com.tuan.ui.util.BtnMenu;
import tw.com.tuan.ui.util.CanvasArea;
import tw.com.tuan.ui.util.ImgViewer;

public class MainMenu extends JFrameChild{

	public MainMenu(String string) {
		super(string);
		initial();
	}	
	
	public void initial() {
		super.initial();
		
		this.setLayout(new BorderLayout());
		
		//限制最小大小
		//this.setMinimumSize(new Dimension(400,200));
		
		//放到最大
		this.setExtendedState(JFrame.MAXIMIZED_BOTH);
		
		this.add(BorderLayout.NORTH, BtnMenu.getPanel());
		this.add(BorderLayout.CENTER, CanvasArea.getPanel());
		this.add(BorderLayout.SOUTH, ImgViewer.getPanel());
	}
}
